package com.fenghongzhang.day009;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class Main2Activity extends AppCompatActivity {
    private MyMatrix img;
    private Button translate;
    private Button scale;
    private Button rotate;
    private Button skew;
    private Button waterMark;
    private Button reset;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);


        img = (MyMatrix) findViewById(R.id.img);
        translate = (Button) findViewById(R.id.translate);
        scale = (Button) findViewById(R.id.scale);
        rotate = (Button) findViewById(R.id.rotate);
        skew = (Button) findViewById(R.id.skew);
        waterMark = (Button) findViewById(R.id.water_mark);
        reset = (Button) findViewById(R.id.reset);

    }

    public void tran(View view) {
//       img.tran(10,10);
//        img.waterMark();
        img.showRefrection();
    }


}
